package com.example.manager.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Book implements java.io.Serializable{


    private String img ;
    private int bookid;
    private String bookname;
    private String author;
    private String publisher;
    private double price;
    private String summary;
    private int status;
    private int typeId;
    private String isbn;
    private String language;
    private int pressmark; //书架号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pubdate;

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public int getPressmark() {
        return pressmark;
    }

    public void setPressmark(int pressmark) {
        this.pressmark = pressmark;
    }

    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    public Book() {
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public Book(String img, int bookid, String bookname, String author, String publisher, double price, String summary, int status, int typeId, String isbn, String language, int pressmark, Date pubdate) {
        this.img = img;
        this.bookid = bookid;
        this.bookname = bookname;
        this.author = author;
        this.publisher = publisher;
        this.price = price;
        this.summary = summary;
        this.status = status;
        this.typeId = typeId;
        this.isbn = isbn;
        this.language = language;
        this.pressmark = pressmark;
        this.pubdate = pubdate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getBookid() {
        return bookid;
    }

    public void setBookid(int bookid) {
        this.bookid = bookid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "Book{" +
                "img='" + img + '\'' +
                ", bookid=" + bookid +
                ", bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", publisher='" + publisher + '\'' +
                ", price=" + price +
                ", summary='" + summary + '\'' +
                ", status=" + status +
                ", typeId=" + typeId +
                ", isbn='" + isbn + '\'' +
                ", language='" + language + '\'' +
                ", pressmark=" + pressmark +
                ", pubdate=" + pubdate +
                '}';
    }
}
